package com.huilian.iotbox.admin.service;

import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.dto.RoleDto;
import com.huilian.iotbox.data.po.Role;
import com.huilian.iotbox.data.vo.RoleVo;
import com.huilian.iotbox.data.vo.UserInfo;

import java.util.List;


/**
 * @author 少凡
 * @date 2020/3/1 20:27
 */
public interface RoleService {

    List<Role> findListByAgencyId(UserInfo userInfo, RoleDto roleDto);

    ServerResponse update(Role role);

    ServerResponse delete(Integer id);

    ServerResponse add(Role role);

    ServerResponse assignRoles(UserInfo userInfo, String userId);

    List<Role> getUserRoleList(Integer userId);

    Role getById(Integer roleId);

    List<Role> getRoleByAgencyId(RoleVo roleVo);
}
